home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / exploits / tests / nis / proto / nispasswd / nispasswd_clnt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-13  |  964 b   |  35 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #include <memory.h> /* for memset */
  7. #include "nispasswd.h"
  8.  
  9. /* Default timeout can be changed using clnt_control() */
  10. static struct timeval TIMEOUT = { 25, 0 };
  11.  
  12. nispasswd_authresult *
  13. nispasswd_authenticate_1(npd_request *argp, CLIENT *clnt)
  14. {
  15.     static nispasswd_authresult clnt_res;
  16.  
  17.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  18.     if (clnt_call(clnt, NISPASSWD_AUTHENTICATE, (xdrproc_t) xdr_npd_request, argp, (xdrproc_t) xdr_nispasswd_authresult, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  19.         return (NULL);
  20.     }
  21.     return (&clnt_res);
  22. }
  23.  
  24. nispasswd_updresult *
  25. nispasswd_update_1(npd_update *argp, CLIENT *clnt)
  26. {
  27.     static nispasswd_updresult clnt_res;
  28.  
  29.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  30.     if (clnt_call(clnt, NISPASSWD_UPDATE, (xdrproc_t) xdr_npd_update, argp, (xdrproc_t) xdr_nispasswd_updresult, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  31.         return (NULL);
  32.     }
  33.     return (&clnt_res);
  34. }
  35.